#pragma once

#include "iostream"
#include "stdio.h"
#include "stdlib.h"
#include "color.hpp"
#include "store.hpp"
#include "utils.hpp"
#include "iomanip"

using namespace std;

#define FILENAME_LEN 100

namespace rex
{
	class Ui
	{
	public:
		Ui();
		~Ui();

		char* file_name;
		Store* store;

		bool open();
		void show_main();
		void show_add();
		void Ui::show_all();
		void Ui::show_delete();
		void Ui::show_change();
		void Ui::show_search();
		void status();
		bool login(char* username, char* password);

		// ========================

		static int get_int();
		static char get_char();
		static void get_pwd(char* password, size_t len);
		static void get_string(char* str, size_t len);

		static void show_student(Student* stu);
		
	};
}